

$(function () {

    ylq_category_title();




    function ylq_category_title(){//获取头部数据
        $.ajax({
            type: "get",
            url: "http://193.112.55.79:9090/api/getbrandtitle",
            dataType: "json",
            success: function (response) {
                let  data = response.result;
                list_id(data)
                console.log(data)
                 let html=template('ylq_category_tamp',{arr:data});
                $('.ylq_category_view').html(html);
            }
        });
    }
})


function list_id(data){
    $('.ylq_category_view').on('tap','.mui-table-view',function(){//获取li数据
        location.href='brand.html?brandTitleId='+ data[$(this).index()].brandTitleId+" &productid="+ data[$(this).index()].brandTitleId;
       
    })


}